package cn.car91.bean;

import java.util.List;

import com.baidu.mapapi.map.offline.MKOLSearchRecord;

public class OfflineMapCityBean {
    private String cityName;
    private int cityCode;
    /**
     * 下载的进度
     */
    private int progress;
    private List<MKOLSearchRecord> childcities;

    private Flag flag = Flag.NO_STATUS;

    /**
     * 下载的状态：无状态，暂停，正在下载
     *
     * @author zhy
     */
    public enum Flag {
        NO_STATUS, PAUSE, DOWNLOADING, UPDATE
    }

    public Flag getFlag() {
        return flag;
    }

    public void setFlag(Flag flag) {
        this.flag = flag;
    }

    public OfflineMapCityBean() {
    }

    public OfflineMapCityBean(String cityName, int cityCode, int progress) {
        this.cityName = cityName;
        this.cityCode = cityCode;
        this.progress = progress;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public int getCityCode() {
        return cityCode;
    }

    public void setCityCode(int cityCode) {
        this.cityCode = cityCode;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public List<MKOLSearchRecord> getChildcities() {
        return childcities;
    }

    public void setChildcities(List<MKOLSearchRecord> childcities) {
        this.childcities = childcities;
    }
}
